﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms.Design;
using System.Windows.Forms;

namespace YY.UI
{
    public class LocalDirDlg : FolderNameEditor
    {
        FolderNameEditor.FolderBrowser fDialog = new System.Windows.Forms.Design.FolderNameEditor.FolderBrowser();

        public LocalDirDlg()
        {
            //   
            //   TODO:   在此处添加构造函数逻辑 
            // 

        }

        public DialogResult DisplaySourceDialog()
        {
            return DisplayDialog("请选择源目录 ");
        }

        public DialogResult DisplayTargetDialog()
        {
            return DisplayDialog("请选择目标目录 ");
        }

        public DialogResult DisplayDialog(string description)
        {

            fDialog.Description = description;
            return fDialog.ShowDialog();

        }

        ///   <summary> 
        ///   获得当前路径 
        ///   </summary> 
        public string Path
        {
            get
            {
                return fDialog.DirectoryPath;
            }
        }
    }

}
